package com.splic.common.config;

import lombok.Data;
import me.chanjar.weixin.common.service.WxOAuth2Service;
//import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.impl.WxMpOAuth2ServiceImpl;
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
import me.chanjar.weixin.mp.config.WxMpConfigStorage;
import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * ==========================
 * 开发：singe
 * 创建时间：2022-03-10 22:51
 * 版本: 1.0
 * 描述：TODO
 * ==========================
 */
@Component
@Data
@ConfigurationProperties(prefix = "wechat")
public class WechatConfig{

    /**
     * 公众平台Id
     */
    public static String appId = "wxa5a919b07f41ee02";

    /**
     * 公众平台密钥
     */
    public static String secret = "c29876527d6dfc664c66b4b54f75451d";

    public static String notifyUrl = "https://api.ej-mobile.cn/api/payNotify/wxPayNotify";

    public static String mchId = "1518424111";

    public static String mchKey2 = "ejeasyjoywechatpay20190819secret";

    public static String mchKey3 = "easyjoywechatsecretkey20220318ej";
    //{"appId":"wxa5a919b07f41ee02","secret":"c29876527d6dfc664c66b4b54f75451d","mchId":"1518424111","mchKey2":"ejeasyjoywechatpay20190819secret","mchKey3":"easyjoywechatsecretkey20220318ej"}
    /**
     * 公众平台密钥
     */
    public static String code;


}
